const express = require('express');
const router = express.Router();

router.get('/', (req, res) => {
    const content = [];
    for(let i = 1; i <= 20; i++) content.push({
        id: `${i}`,
        code: `code${i}`,
        name: `name${i}`,
        brandId: `brandId${i}`,
        brandName: `brandName${i}`,
        brandCode: `brandCode${i}`,
        marketDepartment: `marketDepartment${i}`,
        country: `country${i}`,
        dealerId: `dealerId${i}`,
        dealerCode: `dealerCode${i}`,
        dealerName: `dealerName${i}`,
        submitYear: 0,
        submitMonth: 0,
        modelCode: `modelCode${i}`,
        versionCode: `versionCode${i}`,
        status: Math.floor(Math.random() * 5),
        remark: `string${i}`,
        rowVersion: 'rowVersion',
        options: [
            'abandon',
            'takeEffect',
            'salePlanOrder'
        ],
        createTime: '2020-05-09T04:22:02.375Z'
    });
    res.json(
        {
            message: '',
            payload: {
                content,
                totalElements: 100,
            }
        }
    );
});
router.get('/searchCountry', (req, res) => {
    const content = [];
    for(let i = 1; i <= 20; i++) content.push({
        id: `${i}`,
        chineseName: `chineseName${i}`,
        name: `English${i}`,
    });
    res.json(
        {
            message: '',
            payload: {
                content,
                totalElements: 100,
            }
        }
    );
});
router.get('/:id', (req, res) => {
    res.json({
        payload: {
            id: '068e954a-278a-4485-d14e-08d813f6df23',
            brandId: '305d091e-3a99-43e0-14dd-08d76bf076c5',
            brandCode: 'CHERY',
            brandName: 'CHERY',
            country: 'Bahrain',
            countryChineseName: '巴林',
            marketDepartmentId: '12f0150e-cc87-4709-9164-5f6db25e212d',
            marketDepartmentCode: '04',
            marketDepartmentName: '中东大区',
            submitYear: 2020,
            submitMonth: 6,
            dealerId: 'fcee2790-bf8a-4082-9b08-08d74c53a651',
            dealerCode: '10921',
            dealerName: 'ASIAN MOTORS W.L.L',
            businessType: 1,
            salesTarget: [
                {
                    id: 'ed694475-15b4-4b3f-a226-01b896f64796',
                    month: '1月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '4894e6f8-0f89-462a-83d9-67ba25ab6229',
                    month: '1月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '374c969a-4c99-4148-a011-7fecca084461',
                    month: '2月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '0f69c4d1-b754-43a1-a1d6-6649ab7b75da',
                    month: '2月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '169839f1-5dab-4ea2-be9c-554f53e86197',
                    month: '3月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '04fd5b74-8dd9-4d92-80be-e4077ee4be32',
                    month: '3月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '76793cc1-5c4f-4d4c-91e6-cf1ba0430740',
                    month: '4月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '18219cc2-2d2c-4747-8d25-ab9248f7c1fa',
                    month: '4月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'f591564a-0e2b-43ae-a019-aeabebf725ca',
                    month: '5月',
                    year: 2020,
                    value: 50
                },
                {
                    id: '019f3364-57f3-4928-ae79-bcb398f4a534',
                    month: '5月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '75c311e6-f6d9-4ca4-9bb1-3e8c9d57ae63',
                    month: '6月',
                    year: 2020,
                    value: 60
                },
                {
                    id: 'cc718544-f566-4d21-89d1-f87efdd8600f',
                    month: '6月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '2dcb4f62-8291-445b-b296-5aab71af52ca',
                    month: '7月',
                    year: 2020,
                    value: 70
                },
                {
                    id: 'c93a2397-d47b-4617-9ea2-bd3d7e5b20f2',
                    month: '7月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'b555228d-2d8b-4148-a077-b59daae9ff95',
                    month: '8月',
                    year: 2020,
                    value: 80
                },
                {
                    id: '13774875-a4f2-4992-a9f3-d7cafc1601f5',
                    month: '8月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'c293b039-7350-4b0b-80f0-8f770d4336e1',
                    month: '9月',
                    year: 2020,
                    value: 90
                },
                {
                    id: '5e3a6963-aa0c-4fa5-9be9-62b45a0272cb',
                    month: '9月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '0f889fad-3e2b-4f93-b4e9-f5c12e11ebbf',
                    month: '10月',
                    year: 2020,
                    value: 100
                },
                {
                    id: '442e8059-bbb2-4ffa-8916-5c93fea8e424',
                    month: '10月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'b44ec833-63c8-40f0-a74c-915e9e5e655f',
                    month: '11月',
                    year: 2020,
                    value: 110
                },
                {
                    id: '23158f19-d650-4af9-a8f2-f05b29934ca2',
                    month: '11月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '0ac9db90-fc7a-4231-92c9-965216417ea8',
                    month: '12月',
                    year: 2020,
                    value: 120
                },
                {
                    id: 'f470f055-b1fb-4b6c-a52f-b4ec2f0a89f7',
                    month: '12月',
                    year: 2019,
                    value: 0
                }
            ],
            purchasePlan: [
                {
                    id: '0de2394f-7b95-4f98-b378-082abc3770f8',
                    month: '1月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'de2807d1-8a91-476a-ab86-8e7641715101',
                    month: '1月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'c28271c7-5f08-4900-a00c-4eb6b93912ef',
                    month: '2月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '164af265-df54-4224-9825-9496162da698',
                    month: '2月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'ef242700-0274-404b-9724-d082ddefc9e2',
                    month: '3月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'bc047e1b-0853-443d-9e8a-a3aa0a60bd8b',
                    month: '3月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '18c8c663-5c65-40c6-81b2-e2d49291663c',
                    month: '4月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '4ad533e1-c55a-428c-ade1-38b5594191a5',
                    month: '4月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '863d3e4b-bb30-425c-adf7-a5522d63fa70',
                    month: '5月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'ad1a0a03-e7b8-42cc-a8c3-c5c292943c24',
                    month: '5月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '74b106ab-5b9d-45f5-8c08-54e1d04f65ea',
                    month: '6月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'd86199fb-77e9-45d2-b231-2e4253ebca28',
                    month: '6月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '1d604f12-3544-4a96-b4b3-9074125a52e0',
                    month: '7月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '7030abaf-0acf-497f-84ae-5d16f1295407',
                    month: '7月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '9b2cc89d-ed75-485f-a4c9-0562d8d3312a',
                    month: '8月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'a15b48ab-bcf5-4138-8fd7-6cf65bdfb3af',
                    month: '8月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '13f2317c-ed9b-440f-9d93-84a7f36e5e30',
                    month: '9月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'd6733783-d5f7-4603-8835-f7ac13ea9dad',
                    month: '9月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '6a3a2ae2-75c2-40a8-9f81-818a8fdb73ad',
                    month: '10月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '850c1635-8670-4ec1-b1d6-0237c6f53a6e',
                    month: '10月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '04316c84-4be1-4b14-ab78-6259bbbef54a',
                    month: '11月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'd0dc74b9-8e0a-4909-8129-1ac0e3084306',
                    month: '11月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '1dc8871e-2e76-4501-8e1b-5a6428b0d576',
                    month: '12月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'dc75d755-bcd6-45c1-9cba-3754eb6d7a92',
                    month: '12月',
                    year: 2019,
                    value: 0
                }
            ],
            saleRatio: [
                {
                    id: '2ff2b3a8-6499-46d9-b87f-2a121e7eada1',
                    month: '1月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'fc9500d3-958d-4e3d-8ad9-e39e119a4f6c',
                    month: '1月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'ec8c2a55-eaf6-4d9f-843e-6d1e80be365b',
                    month: '2月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '454802c9-b62d-4ca9-80f0-734c7582abf9',
                    month: '2月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '90429bd2-b366-4447-b4a6-9cfe9ef96155',
                    month: '3月',
                    year: 2020,
                    value: 0
                },
                {
                    id: '4c76dd69-82fa-4545-8f99-33a417186804',
                    month: '3月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '7dfc065c-978b-4af2-9f40-df9dc881641c',
                    month: '4月',
                    year: 2020,
                    value: 0
                },
                {
                    id: 'd2cbe897-debe-4c00-91a8-8082d824da5f',
                    month: '4月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '3e394700-76fb-48e3-a90b-88e0034f092b',
                    month: '5月',
                    year: 2020,
                    value: -1
                },
                {
                    id: '8d387e18-e043-45af-b1e4-085bee42468c',
                    month: '5月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'f67ce0b0-5981-4e00-a91f-115b833d0672',
                    month: '6月',
                    year: 2020,
                    value: -1.8
                },
                {
                    id: '9321b409-fec4-43c9-9733-5d1419aba61c',
                    month: '6月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '55601950-bee7-4cff-a734-a34c0cfebf34',
                    month: '7月',
                    year: 2020,
                    value: -2.6
                },
                {
                    id: 'ae0cdb7e-a8d9-415e-8ad0-4056c13a04dd',
                    month: '7月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'c925fa2c-e2d9-48e5-858f-e15e97088da5',
                    month: '8月',
                    year: 2020,
                    value: -3.2
                },
                {
                    id: '0dd59302-e2ac-47e5-9859-a8f28a12f55e',
                    month: '8月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'c8add735-e169-4a81-b405-3b412f0620bc',
                    month: '9月',
                    year: 2020,
                    value: -3.9
                },
                {
                    id: '1b41a45f-9bce-4f6a-98b6-33dc398486b0',
                    month: '9月',
                    year: 2019,
                    value: 0
                },
                {
                    id: 'c86cfab0-4d33-4279-8532-e13ffa87df9d',
                    month: '10月',
                    year: 2020,
                    value: -4.5
                },
                {
                    id: '8f229e00-fb79-49cd-b5d9-29c70214bb80',
                    month: '10月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '865454ad-406f-4c5e-afa3-54e412c0ad02',
                    month: '11月',
                    year: 2020,
                    value: -5.1
                },
                {
                    id: '2fdeca98-5d4d-49b6-9929-a6c12e06588d',
                    month: '11月',
                    year: 2019,
                    value: 0
                },
                {
                    id: '0aaec122-70c9-48b7-9e6d-65ce043e4f73',
                    month: '12月',
                    year: 2020,
                    value: -5.7
                },
                {
                    id: 'ffc40bb1-fbd3-4670-85ce-97499d0e62f5',
                    month: '12月',
                    year: 2019,
                    value: 0
                }
            ],
            details: [
                {
                    id: '55fc5193-5785-4bf2-568d-08d813f6df2b',
                    countryChineseName: '巴林',
                    dealerCode: '10921',
                    dealerName: 'ASIAN MOTORS W.L.L',
                    businessType: 1,
                    cbuAnnualBeginningInventory: 0,
                    newCarLaunchTime: null,
                    versionCode: 'A19',
                    versionName: 'A19',
                    materialGroupKDBOMCode: 'A7150WN**DZ0011',
                    newModel: false,
                    kdAnnualBeginningInventory: 0,
                    n1SalesTargetQuantity: 0,
                    n1PurchasePlanQuantity: 0,
                    n1DeliveryPlanQuantity: 0,
                    n1KDProductPlanQuantity: 0,
                    n1CBUReceiveQuantity: 0,
                    n1KDEndingInventory: 0,
                    n1CBUEndingInventory: 0,
                    n1StoreSaleRatio: 0,
                    n1OnTheWayNum: 0,
                    n1TotalInventory: 0,
                    n2SalesTargetQuantity: 0,
                    n2PurchasePlanQuantity: 0,
                    n2DeliveryPlanQuantity: 0,
                    n2KDProductPlanQuantity: 0,
                    n2CBUReceiveQuantity: 0,
                    n2KDEndingInventory: 0,
                    n2CBUEndingInventory: 0,
                    n2StoreSaleRatio: 0,
                    n2OnTheWayNum: 0,
                    n2TotalInventory: 0,
                    n3SalesTargetQuantity: 0,
                    n3PurchasePlanQuantity: 0,
                    n3DeliveryPlanQuantity: 0,
                    n3KDProductPlanQuantity: 0,
                    n3CBUReceiveQuantity: 0,
                    n3KDEndingInventory: 0,
                    n3CBUEndingInventory: 0,
                    n3StoreSaleRatio: 0,
                    n3OnTheWayNum: 0,
                    n3TotalInventory: 0,
                    n4SalesTargetQuantity: 0,
                    n4PurchasePlanQuantity: 0,
                    n4DeliveryPlanQuantity: 0,
                    n4KDProductPlanQuantity: 0,
                    n4CBUReceiveQuantity: 0,
                    n4KDEndingInventory: 0,
                    n4CBUEndingInventory: 0,
                    n4StoreSaleRatio: 0,
                    n4OnTheWayNum: 0,
                    n4TotalInventory: 0,
                    n5SalesTargetQuantity: 50,
                    n5PurchasePlanQuantity: 0,
                    n5DeliveryPlanQuantity: 0,
                    n5KDProductPlanQuantity: 0,
                    n5CBUReceiveQuantity: 0,
                    n5KDEndingInventory: 0,
                    n5CBUEndingInventory: -50,
                    n5StoreSaleRatio: -1,
                    n5OnTheWayNum: 0,
                    n5TotalInventory: -50,
                    n6SalesTargetQuantity: 60,
                    n6PurchasePlanQuantity: 0,
                    n6DeliveryPlanQuantity: 0,
                    n6KDProductPlanQuantity: 0,
                    n6CBUReceiveQuantity: 0,
                    n6KDEndingInventory: 0,
                    n6CBUEndingInventory: -110,
                    n6StoreSaleRatio: -1.8,
                    n6OnTheWayNum: 0,
                    n6TotalInventory: -110,
                    n7SalesTargetQuantity: 70,
                    n7PurchasePlanQuantity: 0,
                    n7DeliveryPlanQuantity: 0,
                    n7KDProductPlanQuantity: 0,
                    n7CBUReceiveQuantity: 0,
                    n7KDEndingInventory: 0,
                    n7CBUEndingInventory: -180,
                    n7StoreSaleRatio: -2.6,
                    n7OnTheWayNum: 0,
                    n7TotalInventory: -180,
                    n8SalesTargetQuantity: 80,
                    n8PurchasePlanQuantity: 0,
                    n8DeliveryPlanQuantity: 0,
                    n8KDProductPlanQuantity: 0,
                    n8CBUReceiveQuantity: 0,
                    n8KDEndingInventory: 0,
                    n8CBUEndingInventory: -260,
                    n8StoreSaleRatio: -3.2,
                    n8OnTheWayNum: 0,
                    n8TotalInventory: -260,
                    n9SalesTargetQuantity: 90,
                    n9PurchasePlanQuantity: 0,
                    n9DeliveryPlanQuantity: 0,
                    n9KDProductPlanQuantity: 0,
                    n9CBUReceiveQuantity: 0,
                    n9KDEndingInventory: 0,
                    n9CBUEndingInventory: -350,
                    n9StoreSaleRatio: -3.9,
                    n9OnTheWayNum: 0,
                    n9TotalInventory: -350,
                    n10SalesTargetQuantity: 100,
                    n10PurchasePlanQuantity: 0,
                    n10DeliveryPlanQuantity: 0,
                    n10KDProductPlanQuantity: 0,
                    n10CBUReceiveQuantity: 0,
                    n10KDEndingInventory: 0,
                    n10CBUEndingInventory: -450,
                    n10StoreSaleRatio: -4.5,
                    n10OnTheWayNum: 0,
                    n10TotalInventory: -450,
                    n11SalesTargetQuantity: 110,
                    n11PurchasePlanQuantity: 0,
                    n11DeliveryPlanQuantity: 0,
                    n11KDProductPlanQuantity: 0,
                    n11CBUReceiveQuantity: 0,
                    n11KDEndingInventory: 0,
                    n11CBUEndingInventory: -560,
                    n11StoreSaleRatio: -5.1,
                    n11OnTheWayNum: 0,
                    n11TotalInventory: -560,
                    n12SalesTargetQuantity: 120,
                    n12PurchasePlanQuantity: 0,
                    n12DeliveryPlanQuantity: 0,
                    n12KDProductPlanQuantity: 0,
                    n12CBUReceiveQuantity: 0,
                    n12KDEndingInventory: 0,
                    n12CBUEndingInventory: -680,
                    n12StoreSaleRatio: -5.7,
                    n12OnTheWayNum: 0,
                    n12TotalInventory: -680,
                    n13SalesTargetQuantity: 0,
                    n13PurchasePlanQuantity: 0,
                    n13DeliveryPlanQuantity: 0,
                    n13KDProductPlanQuantity: 0,
                    n13CBUReceiveQuantity: 0,
                    n13KDEndingInventory: 0,
                    n13CBUEndingInventory: 0,
                    n13StoreSaleRatio: 0,
                    n13OnTheWayNum: 0,
                    n13TotalInventory: 0,
                    n14SalesTargetQuantity: 0,
                    n14PurchasePlanQuantity: 0,
                    n14DeliveryPlanQuantity: 0,
                    n14KDProductPlanQuantity: 0,
                    n14CBUReceiveQuantity: 0,
                    n14KDEndingInventory: 0,
                    n14CBUEndingInventory: 0,
                    n14StoreSaleRatio: 0,
                    n14OnTheWayNum: 0,
                    n14TotalInventory: 0,
                    n15SalesTargetQuantity: 0,
                    n15PurchasePlanQuantity: 0,
                    n15DeliveryPlanQuantity: 0,
                    n15KDProductPlanQuantity: 0,
                    n15CBUReceiveQuantity: 0,
                    n15KDEndingInventory: 0,
                    n15CBUEndingInventory: 0,
                    n15StoreSaleRatio: 0,
                    n15OnTheWayNum: 0,
                    n15TotalInventory: 0,
                    n16SalesTargetQuantity: 0,
                    n16PurchasePlanQuantity: 0,
                    n16DeliveryPlanQuantity: 0,
                    n16KDProductPlanQuantity: 0,
                    n16CBUReceiveQuantity: 0,
                    n16KDEndingInventory: 0,
                    n16CBUEndingInventory: 0,
                    n16StoreSaleRatio: 0,
                    n16OnTheWayNum: 0,
                    n16TotalInventory: 0,
                    n17SalesTargetQuantity: 0,
                    n17PurchasePlanQuantity: 0,
                    n17DeliveryPlanQuantity: 0,
                    n17KDProductPlanQuantity: 0,
                    n17CBUReceiveQuantity: 0,
                    n17KDEndingInventory: 0,
                    n17CBUEndingInventory: 0,
                    n17StoreSaleRatio: 0,
                    n17OnTheWayNum: 0,
                    n17TotalInventory: 0,
                    n18SalesTargetQuantity: 0,
                    n18PurchasePlanQuantity: 0,
                    n18DeliveryPlanQuantity: 0,
                    n18KDProductPlanQuantity: 0,
                    n18CBUReceiveQuantity: 0,
                    n18KDEndingInventory: 0,
                    n18CBUEndingInventory: 0,
                    n18StoreSaleRatio: 0,
                    n18OnTheWayNum: 0,
                    n18TotalInventory: 0
                }
            ],
            month: null,
            sumKDAnnualBeginningInventory: 0,
            sumCBUAnnualBeginningInventory: 0,
            sumN1SalesTargetQuantity: 0,
            sumN1PurchasePlanQuantity: 0,
            sumN1DeliveryPlanQuantity: 0,
            sumN1KDProductPlanQuantity: 0,
            sumN1CBUReceiveQuantity: 0,
            sumN1KDEndingInventory: 0,
            sumN1CBUEndingInventory: 0,
            sumN1StoreSaleRatio: 0,
            sumN2SalesTargetQuantity: 0,
            sumN2PurchasePlanQuantity: 0,
            sumN2DeliveryPlanQuantity: 0,
            sumN2KDProductPlanQuantity: 0,
            sumN2CBUReceiveQuantity: 0,
            sumN2KDEndingInventory: 0,
            sumN2CBUEndingInventory: 0,
            sumN2StoreSaleRatio: 0,
            sumN3SalesTargetQuantity: 0,
            sumN3PurchasePlanQuantity: 0,
            sumN3DeliveryPlanQuantity: 0,
            sumN3KDProductPlanQuantity: 0,
            sumN3CBUReceiveQuantity: 0,
            sumN3KDEndingInventory: 0,
            sumN3CBUEndingInventory: 0,
            sumN3StoreSaleRatio: 0,
            sumN4SalesTargetQuantity: 0,
            sumN4PurchasePlanQuantity: 0,
            sumN4DeliveryPlanQuantity: 0,
            sumN4KDProductPlanQuantity: 0,
            sumN4CBUReceiveQuantity: 0,
            sumN4KDEndingInventory: 0,
            sumN4CBUEndingInventory: 0,
            sumN4StoreSaleRatio: 0,
            sumN5SalesTargetQuantity: 50,
            sumN5PurchasePlanQuantity: 0,
            sumN5DeliveryPlanQuantity: 0,
            sumN5KDProductPlanQuantity: 0,
            sumN5CBUReceiveQuantity: 0,
            sumN5KDEndingInventory: 0,
            sumN5CBUEndingInventory: -50,
            sumN5StoreSaleRatio: -1,
            sumN6SalesTargetQuantity: 60,
            sumN6PurchasePlanQuantity: 0,
            sumN6DeliveryPlanQuantity: 0,
            sumN6KDProductPlanQuantity: 0,
            sumN6CBUReceiveQuantity: 0,
            sumN6KDEndingInventory: 0,
            sumN6CBUEndingInventory: -110,
            sumN6StoreSaleRatio: -1.8,
            sumN7SalesTargetQuantity: 70,
            sumN7PurchasePlanQuantity: 0,
            sumN7DeliveryPlanQuantity: 0,
            sumN7KDProductPlanQuantity: 0,
            sumN7CBUReceiveQuantity: 0,
            sumN7KDEndingInventory: 0,
            sumN7CBUEndingInventory: -180,
            sumN7StoreSaleRatio: -2.6,
            sumN8SalesTargetQuantity: 80,
            sumN8PurchasePlanQuantity: 0,
            sumN8DeliveryPlanQuantity: 0,
            sumN8KDProductPlanQuantity: 0,
            sumN8CBUReceiveQuantity: 0,
            sumN8KDEndingInventory: 0,
            sumN8CBUEndingInventory: -260,
            sumN8StoreSaleRatio: -3.2,
            sumN9SalesTargetQuantity: 90,
            sumN9PurchasePlanQuantity: 0,
            sumN9DeliveryPlanQuantity: 0,
            sumN9KDProductPlanQuantity: 0,
            sumN9CBUReceiveQuantity: 0,
            sumN9KDEndingInventory: 0,
            sumN9CBUEndingInventory: -350,
            sumN9StoreSaleRatio: -3.9,
            sumN10SalesTargetQuantity: 100,
            sumN10PurchasePlanQuantity: 0,
            sumN10DeliveryPlanQuantity: 0,
            sumN10KDProductPlanQuantity: 0,
            sumN10CBUReceiveQuantity: 0,
            sumN10KDEndingInventory: 0,
            sumN10CBUEndingInventory: -450,
            sumN10StoreSaleRatio: -4.5,
            sumN11SalesTargetQuantity: 110,
            sumN11PurchasePlanQuantity: 0,
            sumN11DeliveryPlanQuantity: 0,
            sumN11KDProductPlanQuantity: 0,
            sumN11CBUReceiveQuantity: 0,
            sumN11KDEndingInventory: 0,
            sumN11CBUEndingInventory: -560,
            sumN11StoreSaleRatio: -5.1,
            sumN12SalesTargetQuantity: 120,
            sumN12PurchasePlanQuantity: 0,
            sumN12DeliveryPlanQuantity: 0,
            sumN12KDProductPlanQuantity: 0,
            sumN12CBUReceiveQuantity: 0,
            sumN12KDEndingInventory: 0,
            sumN12CBUEndingInventory: -680,
            sumN12StoreSaleRatio: -5.7,
            sumN1OnTheWayNum: 0,
            sumN1TotalInventory: 0,
            sumN2OnTheWayNum: 0,
            sumN2TotalInventory: 0,
            sumN3OnTheWayNum: 0,
            sumN3TotalInventory: 0,
            sumN4OnTheWayNum: 0,
            sumN4TotalInventory: 0,
            sumN5OnTheWayNum: 0,
            sumN5TotalInventory: -50,
            sumN6OnTheWayNum: 0,
            sumN6TotalInventory: -110,
            sumN7OnTheWayNum: 0,
            sumN7TotalInventory: -180,
            sumN8OnTheWayNum: 0,
            sumN8TotalInventory: -260,
            sumN9OnTheWayNum: 0,
            sumN9TotalInventory: -350,
            sumN10OnTheWayNum: 0,
            sumN10TotalInventory: -450,
            sumN11OnTheWayNum: 0,
            sumN11TotalInventory: -560,
            sumN12OnTheWayNum: 0,
            sumN12TotalInventory: -680,
            sumN13SalesTargetQuantity: 0,
            sumN13PurchasePlanQuantity: 0,
            sumN13DeliveryPlanQuantity: 0,
            sumN13KDProductPlanQuantity: 0,
            sumN13CBUReceiveQuantity: 0,
            sumN13KDEndingInventory: 0,
            sumN13CBUEndingInventory: 0,
            sumN13StoreSaleRatio: 0,
            sumN13OnTheWayNum: 0,
            sumN13TotalInventory: 0,
            sumN14SalesTargetQuantity: 0,
            sumN14PurchasePlanQuantity: 0,
            sumN14DeliveryPlanQuantity: 0,
            sumN14KDProductPlanQuantity: 0,
            sumN14CBUReceiveQuantity: 0,
            sumN14KDEndingInventory: 0,
            sumN14CBUEndingInventory: 0,
            sumN14StoreSaleRatio: 0,
            sumN14OnTheWayNum: 0,
            sumN14TotalInventory: 0,
            sumN15SalesTargetQuantity: 0,
            sumN15PurchasePlanQuantity: 0,
            sumN15DeliveryPlanQuantity: 0,
            sumN15KDProductPlanQuantity: 0,
            sumN15CBUReceiveQuantity: 0,
            sumN15KDEndingInventory: 0,
            sumN15CBUEndingInventory: 0,
            sumN15StoreSaleRatio: 0,
            sumN15OnTheWayNum: 0,
            sumN15TotalInventory: 0,
            sumN16SalesTargetQuantity: 0,
            sumN16PurchasePlanQuantity: 0,
            sumN16DeliveryPlanQuantity: 0,
            sumN16KDProductPlanQuantity: 0,
            sumN16CBUReceiveQuantity: 0,
            sumN16KDEndingInventory: 0,
            sumN16CBUEndingInventory: 0,
            sumN16StoreSaleRatio: 0,
            sumN16OnTheWayNum: 0,
            sumN16TotalInventory: 0,
            sumN17SalesTargetQuantity: 0,
            sumN17PurchasePlanQuantity: 0,
            sumN17DeliveryPlanQuantity: 0,
            sumN17KDProductPlanQuantity: 0,
            sumN17CBUReceiveQuantity: 0,
            sumN17KDEndingInventory: 0,
            sumN17CBUEndingInventory: 0,
            sumN17StoreSaleRatio: 0,
            sumN17OnTheWayNum: 0,
            sumN17TotalInventory: 0,
            sumN18SalesTargetQuantity: 0,
            sumN18PurchasePlanQuantity: 0,
            sumN18DeliveryPlanQuantity: 0,
            sumN18KDProductPlanQuantity: 0,
            sumN18CBUReceiveQuantity: 0,
            sumN18KDEndingInventory: 0,
            sumN18CBUEndingInventory: 0,
            sumN18StoreSaleRatio: 0,
            sumN18OnTheWayNum: 0,
            sumN18TotalInventory: 0,
            status: 1,
            rowVersion: 'AAAAAABXbtM=',
            options: [
                'abandon',
                'takeEffect'
            ]
        },
        message: null
    });
});
router.get('/forModel', (req, res) => {
    const content = [];
    for(let i = 1; i <= 20; i++) content.push({
        id: `${i}`,
        code: `code${i}`,
        name: `name${i}`,
        engineModelName: `engineModelName${i}`,
        gearboxModel: `gearboxModel${i}`
    });
    res.json(
        {
            message: '',
            payload: {
                content,
                totalElements: 100,
            }
        }
    );
});
router.get('/forVersion', (req, res) => {
    const content = [];
    for(let i = 1; i <= 20; i++) content.push({
        id: `${i}`,
        lV1Code: `lV1Code${i}`,
        lV2Code: `lV2Code${i}`,
        lV2Name: `lV2Name${i}`,
        lV3Code: `lV3Code${i}`,
        lV3Name: `lV3Name${i}`,
        unitVolume: 0,
        manufacturerName: `manufacturerName${i}`,
    });
    res.json(
        {
            message: '',
            payload: {
                content,
                totalElements: 100,
            }
        }
    );
});
router.get('/export', (req, res) => {
    res.json({
        message: '导出成功',
        payload: 'Mock导出'
    });
});
router.post('/import', (req, res) => {
    //序列号
    res.json({
        message: '导入成功'
    });
});
router.post('/batchEffective', async(req, res) => {
    res.json({
        message: '批量生效成功'
    });
});

router.post('/batchAbandon', async(req, res) => {
    res.json({
        message: '批量作废成功'
    });
});

router.post('/batchSalePlanOrder', async(req, res) => {
    res.json({
        message: '批量生成滚动计划成功'
    });
});

module.exports = router;
